package com.ruoyi.bbs.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 帖子对象 bbs_post
 * 
 * @author saruri
 * @date 2024-10-02
 */
public class BbsPost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long pid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long tid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long authorid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String message;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date dateline;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer isApproved;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer anonymous;

    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setTid(Long tid) 
    {
        this.tid = tid;
    }

    public Long getTid() 
    {
        return tid;
    }
    public void setAuthorid(Long authorid) 
    {
        this.authorid = authorid;
    }

    public Long getAuthorid() 
    {
        return authorid;
    }
    public void setMessage(String message) 
    {
        this.message = message;
    }

    public String getMessage() 
    {
        return message;
    }
    public void setDateline(Date dateline) 
    {
        this.dateline = dateline;
    }

    public Date getDateline() 
    {
        return dateline;
    }
    public void setIsApproved(Integer isApproved) 
    {
        this.isApproved = isApproved;
    }

    public Integer getIsApproved() 
    {
        return isApproved;
    }
    public void setAnonymous(Integer anonymous) 
    {
        this.anonymous = anonymous;
    }

    public Integer getAnonymous() 
    {
        return anonymous;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pid", getPid())
            .append("tid", getTid())
            .append("authorid", getAuthorid())
            .append("message", getMessage())
            .append("dateline", getDateline())
            .append("isApproved", getIsApproved())
            .append("anonymous", getAnonymous())
            .toString();
    }
}
